<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master"  AutoEventWireup="true" CodeBehind="ViewRole.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.ViewRole" %>
<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
     
        .detailstable
        {
            width: 483px;
        }
      
        .style2
        {
            width: 105%;
        }
        .style4
        {
            width: 81px;
        }
        .style6
        {
            width: 442px;
        }
      
        .style7
        {
            width: 306px;
        }
        .style8
        {
            width: 100%;
        }
      
        .style9
        {
            width: 60px;
        }
      
        .style10
        {
            width: 50px;
        }
        .style11
        {
            width: 20px;
        }
        .style12
        {
            width: 29px;
        }
      
    </style>
     <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table class="detailstable">
        <tr>
            <td>
                <table  >
                    <tr>
                        <td>
                            Select User Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="ddlUserType" runat="server" class="ddl"
                 AutoPostBack="True" 
                    onselectedindexchanged="ddlUserType_SelectedIndexChanged1" >
            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table  >
                    <tr>
                        <td class="style6">
            <asp:GridView ID="grdRoles" runat="server" BackColor="#907977" BorderColor="#907977"
                BorderWidth="1px" CellPadding="3" GridLines="Vertical" 
                Width="376px" OnRowDataBound="grdRoles_RowDataBound" OnDataBound="grdRoles_OnDataBound"
                        onrowcreated="grdRoles_RowCreated" on BorderStyle="solid">
                <RowStyle BackColor="#f6f6f6" ForeColor="#4A3C8C" BorderColor="#907977"  />
                <Columns>
                   <%-- <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:RadioButton ID="RadioButton1" runat="server" 
                                 />
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                     <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" class="chbox"
                                 />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Is Enabled">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkEnabled" runat="server" class="chbox" AutoPostBack="True" oncheckedchanged="chkEnabled_CheckedChanged"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="RoleName">
                        <ItemTemplate>
                            <asp:Label id="lblRoleName" runat="server" class="lbl"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#738A9C" ForeColor="#F7F7F7" Font-Bold="True" />
                <HeaderStyle BackColor="#ae5044" Font-Bold="True" ForeColor="#F7F7F7" />
                <AlternatingRowStyle BackColor="#cacbcf" />
            </asp:GridView>
            
                   </td>
                    </tr>
                </table>
                  </td>
        </tr>
                <tr>
            <td>
                           <table cellpadding="0" cellspacing="0" >
                <tr>
                    <td  >
                         <asp:LinkButton ID="btnPrevious" runat="server" onclick="btnPrevious_Click" 
                            Visible="False">Previous</asp:LinkButton>
                    </td>
                    <td width="10"></td>
                    <td >
<asp:TextBox ID="txtPageNo" runat="server"  CssClass="txtbox2"   Visible="False"></asp:TextBox>
                    </td>
                    <td>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                    
    ControlToValidate="txtPageNo" Display="Dynamic" 
                                                    
    ValidationExpression="^\d+$">*</asp:RegularExpressionValidator>
                                                
        
                    </td>
                    <td width="10"></td>
                    <td   >
            
            <asp:LinkButton ID="btnGo" runat="server" OnClientClick="validationSummery();" onclick="txtGo_Click" Visible="False" >Go</asp:LinkButton>        
                    </td>
                    <td width="10"></td>
                    <td   >
                         <asp:LinkButton ID="btnNext" runat="server"
                 onclick="btnNext_Click" Visible="False">Next</asp:LinkButton>
        
                    </td>
                </tr>
            </table>
                            
                                
                                
                                
                                
                                
                                
                 
            </td>
        </tr>
        <tr>
            <td>
                <table  >
                    <tr>
                        <td class="style7">
                            <table cellpadding="0" cellspacing="0" class="style8">
                                <tr>
                                    <td class="style4">
                <asp:Button ID="btnCreate" runat="server" onclick="btnCreate_Click" 
                    Text="Create" Visible="False" class="btn" Width="76px"/>
                                    </td>
                                    <td class="style4">
                <asp:Button ID="btnUpdate" runat="server" onclick="btnUpdate_Click" 
                    Text="Update" Visible="False" class="btn" Width="76px"/>
                                    </td>
                                    <td>
                <asp:Button ID="btnAssignPermissions" runat="server" Text="Manage Permissions" 
                    Visible="False" onclick="btnAssignPermissions_Click" Width="117px" class="btn4"/>
                                    </td>
                                </tr>
                            </table>
                           
                        </td>
                    </tr>
                    <tr>
                        <td class="style7">
                            <asp:Label ID="lblError" runat="server" class="lbl"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
   </asp:Content>